package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 增减员计划附加参数
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "增减员计划附加参数")
@Data
public class EmpSocPlanAttachDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("增减员计划Id")
    @NotNull(message = "id不能为空")
    private List<String> socPlanIdList;

    @ApiModelProperty("执行结果")
    @NotNull(message = "执行结果不能为空")
    private Integer executeResult;

    @ApiModelProperty("公司id")
    @NotNull(message = "公司id不能为空")
    private String companyId;

    @ApiModelProperty("失败原因")
    @Length(max = 200, message = "备注不能超过200字")
    private String failCause;

    @ApiModelProperty("附件")
    private String annex;

    @ApiModelProperty("反馈内容")
    private String feedbackContent;

}
